package com.huanong.it.xwweibo;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScans;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

@SpringBootApplication
@ComponentScan("com.huanong.it")
@EnableFeignClients("com.huanong.it.xwcommon.service")
@MapperScans({
        @MapperScan("com.huanong.it.xwcommon.mapper"),
        @MapperScan("com.huanong.it.xwweibo.mapper"),
        @MapperScan("com.huanong.it.xwweibo.authority.mapper"),
})
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
@RefreshScope

public class XwWeiboApplication {

    public static void main(String[] args) {
        SpringApplication.run(XwWeiboApplication.class, args);
    }

}
